package com.zx.role.mapper;

import com.zx.role.domain.SysRole;
import com.zx.role.domain.SysUser;

import java.util.List;

public interface SysRoleMapper {

    SysRole selectById(Integer id);

    List<SysRole> selectObjects(SysRole entity);

    int insertObject(SysRole entity);

    int updateObject(SysRole entity);

    int deleteObject(SysRole entity);

    int deleteObjectById(Integer id);

    List<SysUser> getUserByRoleId(SysUser sysUser);

    List<SysUser> getUserListByRoleId(SysUser sysUser);

    boolean deleteObjectOnly(Integer id);

    boolean bathDelRole(Integer[] haveIds);

    List<SysRole> getUserCountByRole();

    List<SysUser> getRoleCountByUser();
}
